package com.ddpt.permission.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lh.center.common.base.BizMapper;
import com.lh.center.common.dto.MerchantIdDto;
import com.lh.center.permission.api.entity.MerchantAdminUser;
import com.lh.center.permission.api.request.MerchantAdminUserQueryRequest;
import com.lh.center.permission.api.request.MerchantEmpCountQueryRequest;
import com.lh.center.permission.api.response.MerchantAdminUserResponse;
import com.lh.center.permission.api.response.MerchantEmpCountResponse;
import com.lh.center.permission.api.response.MerchantInsEmpCountResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商户管理员 Mapper 接口
 * </p>
 *
 * @author czy
 * @since 2022-04-07
 */
public interface MerchantAdminUserMapper extends BizMapper<MerchantAdminUser> {

    List<MerchantEmpCountResponse> queryMerchantEmpCount(MerchantEmpCountQueryRequest queryRequest);

    List<MerchantInsEmpCountResponse> queryEmpCount(@Param("insIds") List<Long> insIds);

    Page<MerchantAdminUserResponse> queryPageList(MerchantAdminUserQueryRequest queryRequest);

    List<MerchantAdminUserResponse> queryList(MerchantIdDto queryRequest);

    MerchantAdminUserResponse queryDetail(Long id);
}
